#include <assert.h>
#include "gismanageao_factory.h"
#include "gismanageao_stub4web.h"
#include "gismanageao_stub4app.h"
//#include "gismanageao.h"

using namespace erp::gis::ao;

bool CGisManageAoFactory::s_GisManageAoInit = false;

IGisManageAo* CGisManageAoFactory::GetObject(enum ObjType_T obj_type)
{
    switch(obj_type)
    {
    case STUB4APP:
        return (new CGisManageAoStub4App);
/*适应container3
    case POCO:
    {
        if(!s_GisManageAoInit)
        {
            int iRetCode = CGisManageAo::Initialize();
            assert(iRetCode == 0);
            s_GisManageAoInit = true;
        }   	
        return (new CGisManageAo);
	}*/
    default:
        assert(0);
    };
    return NULL;
}

IGisManageAoAsyc* CGisManageAoFactory::GetAsycObject()
{
	return (new CGisManageAoStub4App);
}
